package newx.com.control
{
	import flash.text.TextFormat;

	public interface IWindow extends IControl
	{
		/**
		 * 设置窗口标题
		 * */
		function get title():String;
		function set title(val:String):void;
		
		/**
		 * 设置窗口标题的大小
		 * */
		function get titleSize():uint;
		function set titleSize(val:uint):void
		
		/**
		 * 设置窗口皮肤
		 * */
		function get skin():String;
		function set skin(value:String):void;
		
		/**
		 * 设置窗口的拖动方式
		 * */
		function get dragSpaceType():String
		function set dragSpaceType(val:String):void;
		
//		/**
//		 * 设置是否存在关闭按钮
//		 * */
//		function get closeBtnEnabled():Boolean;
//		function set closeBtnEnabled(val:Boolean):void;
		
		/**
		 *移除 自己
		 * 
		 */		
		function remove():void;
		
		/** 
		 * 
		 */		
		function hide():void;
		
		/**
		 * 是否显示关闭按钮
		 * @return 
		 */		
		function get closeBtnVisible():Boolean;
		function set closeBtnVisible(val:Boolean):void;
		
		function set color(val:uint):void;
		function get color():uint;
		
		function setTextFormat(format:TextFormat, beginIndex:int=-1, endIndex:int=-1):void;
		function getTextFormat(beginIndex:int=-1, endIndex:int=-1):TextFormat;
		
	}
}